package pnu.ssm.model.stuff;

import pnu.ssm.model.GPosition;
import pnu.ssm.model.tile.TileEnum;

public class Block extends Stuff{
	private int weight;
	private Transporter container;
	private Factory targetFactory;
	private Factory currFactory;
	
	public Block(String name, GPosition pos, int weight){
		super(name, pos, TileEnum.BLOCK);
		this.weight = weight;
	}
	
	public boolean isMoving(){
		return container != null;
	}
	public void bind(Transporter t){
		this.container = t;
	}
	public void release(){
		this.container = null;
	}
	
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	public Factory getTargetFactory() {
		return targetFactory;
	}
	public void setTargetFactory(Factory targetFactory) {
		this.targetFactory = targetFactory;
	}
	public Factory getCurrFactory() {
		return currFactory;
	}
	public void setCurrFactory(Factory currFactory) {
		this.currFactory = currFactory;
	}

	@Override
	public int getDistance(Stuff otherStuff) {
		return 0;
	}
}
